#include <iostream>
#include <cstring>
#include <cmath>
#include <cstdio>
using namespace std;
void add(int a[], int b[], int c[], int l) {
	for (int i = 1; i <= l; i++) {
		c[i] = a[i] + b[i] + c[i];
		if (c[i] >= 10) {
			c[i + 1] = c[i] / 10;
			c[i] = c[i] % 10;
		}
	}

}
void output(int d[], int l) {
	bool start = false;
	cout << endl;
	for (int i = l - 1; i >= 1; i--) {
		if (start == false and d[i] == 0) {
			continue;
		} else {
			start = true;
		}
		cout << d[i];
	}
}
int main() {
	string s1, s2;
	cin >> s1 >> s2;
	int e = max(s1.length(), s2.length()) + 1;
	int a[e], b[e];
	int c[e + 1];
	memset(a, 0, sizeof(a));
	memset(b, 0, sizeof(b));
	memset(c, 0, sizeof(c));
	//cout<<"sizeof(a): "<<sizeof(a);
	a[0] = s1.length();
	b[0] = s2.length();
	for (int i = 0; i < s1.length(); i++) {
		a[s1.length() - i] = s1[i] - '0';
	}
	for (int i = 0; i < s2.length(); i++) {
		b[s2.length() - i] = s2[i] - '0';
	}
	add(a, b, c, e);
	output(c, e);
//	output(a, e);
//	output(b, e);
	return 0;
}
